//
//  HotModel.m
//  SugarPile
//
//  Created by Charlie. on 16/1/18.
//  Copyright © 2016年 www.lanou39.蓝鸥科技. All rights reserved.
//

#import "HotModel.h"

@implementation HotModel
-(void)dealloc
{
    [_width release];
    [_height release];
    [_path release];
    [_msg release];
    [_like_count release];
    [_reply_count release];
    [_favorite_count release];
    [_price release];
    [_icon_url release];
    [_name release];
    [_username release];
    [_avatar release];
    [_source_link release];
    [_ID release];
    [super dealloc];
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"photo"]) {
        self.path = value[@"path"];
        self.width = value[@"width"];
        self.height = value[@"height"];
        
    }
    if ([key isEqualToString:@"item"]) {
        self.price = value[@"price"];
    }
    if ([key isEqualToString:@"sender"]) {
        self.username = value[@"username"];
        self.avatar = value[@"avatar"];
    }
    if ([key isEqualToString:@"album"]) {
        self.name = value[@"name"];
    }
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }

}
@end
